import { v3 } from 'cc';
import { Camera } from 'cc';
import { _decorator, Component, Node } from 'cc';
import { OrbitFollowTarget } from '../framework/OrbitFollowTarget.mjs';
const { ccclass, property } = _decorator;

@ccclass('Game')
export class Game extends Component {
    @property(Camera)
    private TheCamera: Camera = null;
    start() {
        this.scheduleOnce(() => {
            console.log(this.TheCamera.node.position);
            //   
            if(this.node.active){
                
                
                this.node.setPosition(v3(0, 0, 1))
                // this.TheCamera.node.setPosition(v3(0,0,-150))
            }
            
        }, 2)


    }

    update(deltaTime: number) {

    }
}


